1.2.2.11. alpha.core.StackAddressAsyncEscape (C)
Check that addresses to stack memory do not escape the function that involves dispatch_after or dispatch_async. This checker is a part of core.StackAddressEscape, but is temporarily disabled until some false positives are fixed.
Examples:
dispatch_block_t test_block_inside_block_async_leak() { int x = 123; void (^inner)(void) = ^void(void) { int y = x; ++y; }; void (^outer)(void) = ^void(void) { int z = x; ++z; inner(); }; return outer; // warn: address of stack-allocated block is captured by a // returned block }